package StringBuilderExercises;

import java.util.Scanner;

/**
 * @author: bamboo_shoot
 * @date: 20/2/4 14:50
 * @description: 反转 例如，键盘录入abc，输出结果 cba
 */
public class StringBuilderReverse {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入abc");
        StringBuilder sb = new StringBuilder();
        StringBuilder builder = sb.append(sc.nextLine());
        System.out.println(builder.reverse());
    }
}
